package cn.eeepay.framework.service.workOrder;

import cn.eeepay.framework.model.workOrder.WorkOrder;
import cn.eeepay.framework.model.workOrder.WorkOrderItem;
import cn.eeepay.framework.model.workOrder.WorkRemarkRecord;

import java.util.List;
import java.util.Map;

/**
 * @author ：quanhz
 * @date ：Created in 2020/4/29 14:50
 */
public interface WorkOrderItemService {
    /**
     * 回复
     * @param info
     */
    void reply(WorkOrderItem info);

    /**
     * 驳回
     * @param info
     */
    void reject(WorkOrderItem info);

    /**
     * 转单
     * @param orderNoArr
     * @param receiverId
     * @return
     */
    Map<String,Object> transfer(String[] orderNoArr, Integer receiverId);

    /**
     * 备注
     * @param info
     */
    void remark(WorkRemarkRecord info);

    /**
     * 根据工单号获取所有工单项
     * @param orderNo
     * @return
     */
    List<WorkOrderItem> getItemsByOrderNo(String orderNo);

    /**
     * 导出
     * @param order
     * @return
     */
    List<WorkOrderItem> getItemsToExportByOrderNo(WorkOrder order);

    /**
     * 获取最新工单项
     * @param orderNo
     * @param deptNo
     * @param userId
     * @return
     */
    WorkOrderItem getLastestItem(String orderNo,Integer deptNo,Integer userId);
}
